﻿package mortal.game.net.command.group
{
    import Framework.MQ.*;
    import com.gengine.debug.*;
    import extend.language.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class GroupDisbandCommand extends BroadCastCall
    {

        public function GroupDisbandCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            Log.debug("I have receive GroupDisbandCommand");
            _cache.group.disbanGroup();
            NetDispatcher.dispatchCmd(ServerCommand.GroupPlayerInfoChange, null);
            NetDispatcher.dispatchCmd(ServerCommand.CaptainChange, null);
            MsgManager.showRollTipsMsg(Language.getString(30246));
            return;
        }// end function

    }
}
